home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news text
| default
| |
99%
| file
| C source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 74 65 6c 69 73 |Path: ne|ws.telis|
|00000010| 2e 6f 72 67 21 75 73 65 | 6e 65 74 0a 46 72 6f 6d |.org!use|net.From|
|00000020| 3a 20 44 65 72 65 6b 20 | 4c 75 6e 64 20 3c 77 6c |: Derek |Lund <wl|
|00000030| 75 6e 64 40 63 63 69 73 | 2e 63 6f 6d 3e 0a 4e 65 |und@ccis|.com>.Ne|
|00000040| 77 73 67 72 6f 75 70 73 | 3a 20 63 6f 6d 70 2e 6c |wsgroups|: comp.l|
|00000050| 61 6e 67 2e 63 0a 53 75 | 62 6a 65 63 74 3a 20 52 |ang.c.Su|bject: R|
|00000060| 65 3a 20 72 61 6e 64 20 | 3f 0a 44 61 74 65 3a 20 |e: rand |?.Date: |
|00000070| 53 61 74 2c 20 31 36 20 | 4d 61 72 20 31 39 39 36 |Sat, 16 |Mar 1996|
|00000080| 20 32 32 3a 33 38 3a 31 | 30 20 2d 30 38 30 30 0a | 22:38:1|0 -0800.|
|00000090| 4f 72 67 61 6e 69 7a 61 | 74 69 6f 6e 3a 20 54 45 |Organiza|tion: TE|
|000000a0| 4c 49 53 0a 4d 65 73 73 | 61 67 65 2d 49 44 3a 20 |LIS.Mess|age-ID: |
|000000b0| 3c 33 31 34 42 42 33 35 | 32 2e 32 37 33 34 40 63 |<314BB35|2.2734@c|
|000000c0| 63 69 73 2e 63 6f 6d 3e | 0a 52 65 66 65 72 65 6e |cis.com>|.Referen|
|000000d0| 63 65 73 3a 20 3c 34 69 | 64 6a 74 34 24 34 64 75 |ces: <4i|djt4$4du|
|000000e0| 40 69 74 73 6f 70 32 2e | 69 74 73 2e 62 72 6f 6f |@itsop2.|its.broo|
|000000f0| 6b 6c 79 6e 2e 63 75 6e | 79 2e 65 64 75 3e 0a 4e |klyn.cun|y.edu>.N|
|00000100| 4e 54 50 2d 50 6f 73 74 | 69 6e 67 2d 48 6f 73 74 |NTP-Post|ing-Host|
|00000110| 3a 20 73 31 36 2d 70 6d | 30 31 2e 75 73 63 2e 63 |: s16-pm|01.usc.c|
|00000120| 61 6d 70 75 73 2e 6d 63 | 69 2e 6e 65 74 0a 4d 69 |ampus.mc|i.net.Mi|
|00000130| 6d 65 2d 56 65 72 73 69 | 6f 6e 3a 20 31 2e 30 0a |me-Versi|on: 1.0.|
|00000140| 43 6f 6e 74 65 6e 74 2d | 54 79 70 65 3a 20 74 65 |Content-|Type: te|
|00000150| 78 74 2f 70 6c 61 69 6e | 3b 20 63 68 61 72 73 65 |xt/plain|; charse|
|00000160| 74 3d 75 73 2d 61 73 63 | 69 69 0a 43 6f 6e 74 65 |t=us-asc|ii.Conte|
|00000170| 6e 74 2d 54 72 61 6e 73 | 66 65 72 2d 45 6e 63 6f |nt-Trans|fer-Enco|
|00000180| 64 69 6e 67 3a 20 37 62 | 69 74 0a 58 2d 4d 61 69 |ding: 7b|it.X-Mai|
|00000190| 6c 65 72 3a 20 4d 6f 7a | 69 6c 6c 61 20 32 2e 30 |ler: Moz|illa 2.0|
|000001a0| 20 28 57 69 6e 31 36 3b | 20 49 29 0a 54 6f 3a 20 | (Win16;| I).To: |
|000001b0| 44 61 6e 69 65 6c 20 5a | 69 65 6c 69 6e 73 6b 69 |Daniel Z|ielinski|
|000001c0| 20 3c 64 7a 69 65 6c 69 | 6e 73 40 69 74 73 2e 62 | <dzieli|ns@its.b|
|000001d0| 72 6f 6f 6b 6c 79 6e 2e | 63 75 6e 79 2e 65 64 75 |rooklyn.|cuny.edu|
|000001e0| 3e 0a 0a 44 61 6e 69 65 | 6c 20 5a 69 65 6c 69 6e |>..Danie|l Zielin|
|000001f0| 73 6b 69 20 77 72 6f 74 | 65 3a 0a 3e 20 0a 3e 20 |ski wrot|e:.> .> |
|00000200| 49 20 6e 65 65 64 20 74 | 6f 20 67 65 6e 65 72 61 |I need t|o genera|
|00000210| 74 65 20 72 61 6e 64 6f | 6d 20 6e 75 6d 62 65 72 |te rando|m number|
|00000220| 73 20 62 65 74 77 65 65 | 6e 20 30 20 61 6e 64 20 |s betwee|n 0 and |
|00000230| 35 31 2c 20 49 20 74 72 | 69 65 64 20 72 61 6e 64 |51, I tr|ied rand|
|00000240| 28 29 20 77 69 74 68 20 | 73 72 61 6e 64 28 69 29 |() with |srand(i)|
|00000250| 0a 3e 20 69 20 63 68 61 | 6e 67 65 73 20 63 6f 6e |.> i cha|nges con|
|00000260| 73 74 61 6e 74 6c 79 20 | 62 75 74 20 74 68 65 20 |stantly |but the |
|00000270| 70 72 6f 67 72 61 6d 20 | 6e 65 76 65 72 20 65 78 |program |never ex|
|00000280| 69 74 73 2e 20 6c 6f 6f | 6b 73 20 6c 69 6b 65 20 |its. loo|ks like |
|00000290| 74 68 65 20 72 61 6e 64 | 6f 6d 20 6e 75 6d 62 65 |the rand|om numbe|
|000002a0| 72 0a 3e 20 69 73 20 61 | 6c 77 61 79 73 20 74 68 |r.> is a|lways th|
|000002b0| 65 20 73 61 6d 65 2e 20 | 20 61 6e 79 20 68 65 6c |e same. | any hel|
|000002c0| 70 20 77 6f 75 6c 64 20 | 62 65 20 61 70 72 69 63 |p would |be apric|
|000002d0| 69 61 74 65 64 2e 2e 2e | 20 74 68 61 6e 73 73 0a |iated...| thanss.|
|000002e0| 3e 20 49 66 20 79 6f 75 | 20 77 61 6e 74 20 61 20 |> If you| want a |
|000002f0| 74 72 75 65 6c 79 20 72 | 61 6e 64 6f 6d 20 6e 75 |truely r|andom nu|
|00000300| 6d 62 65 72 20 75 73 65 | 20 73 6f 6d 65 74 68 69 |mber use| somethi|
|00000310| 6e 67 20 6c 69 6b 65 20 | 74 68 69 73 0a 0a 23 64 |ng like |this..#d|
|00000320| 65 66 69 6e 65 20 52 41 | 4e 44 4f 4d 49 5a 45 28 |efine RA|NDOMIZE(|
|00000330| 29 20 73 72 61 6e 64 28 | 74 69 6d 65 28 4e 55 4c |) srand(|time(NUL|
|00000340| 4c 29 29 20 2f 2a 20 74 | 69 6d 65 28 29 20 69 73 |L)) /* t|ime() is|
|00000350| 20 69 6e 20 74 69 6d 65 | 2e 68 20 2a 2f 0a 6d 61 | in time|.h */.ma|
|00000360| 69 6e 28 29 0a 7b 0a 20 | 69 6e 74 20 69 20 3b 0a |in().{. |int i ;.|
|00000370| 20 77 68 69 6c 65 28 69 | 20 21 3d 20 30 20 29 0a | while(i| != 0 ).|
|00000380| 20 20 70 72 69 6e 74 66 | 28 22 25 64 5c 6e 22 2c | printf|("%d\n",|
|00000390| 69 20 3d 20 72 61 6e 64 | 6f 6d 28 35 32 29 29 3b |i = rand|om(52));|
|000003a0| 0a 7d 0a 0a 20 69 6e 74 | 20 72 61 6e 64 6f 6d 28 |.}.. int| random(|
|000003b0| 69 6e 74 20 69 29 0a 20 | 7b 0a 20 20 64 6f 75 62 |int i). |{. doub|
|000003c0| 6c 65 20 78 20 3d 20 52 | 41 4e 44 5f 4d 41 58 20 |le x = R|AND_MAX |
|000003d0| 2b 20 31 2e 30 20 3b 2f | 2a 20 52 41 4e 44 5f 4d |+ 1.0 ;/|* RAND_M|
|000003e0| 41 58 20 69 73 20 64 65 | 66 69 6e 65 64 20 69 6e |AX is de|fined in|
|000003f0| 20 73 74 64 6c 69 62 2e | 68 20 2a 2f 0a 20 20 69 | stdlib.|h */. i|
|00000400| 6e 74 20 79 20 3b 20 0a | 20 20 52 41 4e 44 4f 4d |nt y ; .| RANDOM|
|00000410| 49 5a 45 28 29 3b 0a 20 | 20 79 20 3d 20 31 20 2b |IZE();. | y = 1 +|
|00000420| 20 72 61 6e 64 28 29 20 | 2a 20 28 69 20 2f 78 29 | rand() |* (i /x)|
|00000430| 20 3b 0a 20 20 72 65 74 | 75 72 6e 20 79 20 3b 0a | ;. ret|urn y ;.|
|00000440| 20 7d 0a 0a 44 65 72 65 | 6b 20 4c 75 6e 64 0a | }..Dere|k Lund. |
+--------+-------------------------+-------------------------+--------+--------+